import request from '@/utils/request'

// 查询结算加成比率列表
export function listSettlementrate(query) {
  return request({
    url: '/settlementCenter/basedata/settlementrate/list',
    method: 'get',
    params: query
  })
}

// 查询结算加成比率详细
export function getSettlementrate(id) {
  return request({
    url: '/settlementCenter/basedata/settlementrate/' + id,
    method: 'get'
  })
}

// 新增结算加成比率
export function addSettlementrate(data) {
  return request({
    url: '/settlementCenter/basedata/settlementrate',
    method: 'post',
    data: data
  })
}

// 修改结算加成比率
export function updateSettlementrate(data) {
  return request({
    url: '/settlementCenter/basedata/settlementrate',
    method: 'put',
    data: data
  })
}

// 删除结算加成比率
export function delSettlementrate(id) {
  return request({
    url: '/settlementCenter/basedata/settlementrate/' + id,
    method: 'delete'
  })
}
// 查询结算组织对象
export function queryOmsOrgObject(Number) {
  return request({
    url: '/settlementCenter/basedata/settlementrate/omsOrg/'+Number,
    method: 'get',
    timeout: 10000
  })
}
// 查询物料对象
export function queryMaterialObject(Number) {
  return request({
    url: '/settlementCenter/basedata/settlementprice/material/'+Number,
    method: 'get',
    timeout: 10000
  })
}
